<?php
namespace Home\Controller;
use Think\Controller;
/**
 * 活动控制器
 */
class AdController extends Controller{
    /**
     * 活动列表
     */
    public function index()
    {
      $res=M('advertisement')->limit("0,6")->select();
      if(!empty($res))
      {
       $result['status']=1;
       $result['list']=$res;
        echo json_encode($result,JSON_UNESCAPED_UNICODE);
        return '';
      }
        $result['status']=0;
        $result['msg']='暂无信息';
        echo json_encode($result,JSON_UNESCAPED_UNICODE);
      
    }

}